package org.study.bookmanager.repo;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.study.bookmanager.entity.Users;

import java.util.Optional;


@Repository
//应用在dao层
public interface UsersRespository extends JpaRepository<Users, Integer> {
    Users findRoleByuserName(String username);
    Users findByuserName(String userName);
    Users findPasswordByuserName(String userName);
    boolean existsByuserName(String userName);
}
